package com.hkemmm.shop.controller;

import com.hkemmm.shop.service.ICarService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
@RequestMapping("/car")
public class CarController {
    @Autowired
    private ICarService carService;


    @ResponseBody
    @RequestMapping("delGoods")
    public String delGoods(Integer id){
        carService.deleteByPrimaryKey(id);

        return "ok";
    }
}
